from AIAssistant import AIAssistant
class VoiceAssistant(AIAssistant):
    """子类：语音助手"""

    def __init__(self, aid: str, name: str, version: str, is_online: bool, ability_score: int,
                 supported_voice_languages: str):
        super().__init__(aid, name, "语音", version, is_online, ability_score)
        self.supported_voice_languages = supported_voice_languages

    def execute_task(self, task_content: str) -> str:
        return f"[{self.get_name()}] 执行语音交互任务：\n指令：{task_content}\n响应结果：（已通过语音助手完成交互，支持语言：{self.supported_voice_languages}）"

    def get_supported_voice_languages(self) -> str:
        return self.supported_voice_languages

    def set_supported_voice_languages(self, supported_voice_languages: str) -> None:
        self.supported_voice_languages = supported_voice_languages

    def __str__(self) -> str:
        return super().__str__() + f", 支持语音语言: {self.supported_voice_languages}"